{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>adm_bookInfo</title>
    <link rel="stylesheet" href="{% static 'css/bookInfo.css' %}">
</head>
<body>
<body background="{% static 'img/bookInfo.jpg' %}" style="background-repeat:no-repeat ;background-size:100% 100%;background-attachment: fixed;">
    <div class="container">
        <div class="book-image-container">
            <img class="book-image" src="{{ book.book_img }}" alt="图书图片">
        </div>
        <div class="book-details">
            <div class="details-left">
                <h2>书籍号：{{ book.book_id }}</h2>
                <h2>作者：{{ book.book_author }}</h2>
                <h2>出版社：{{ book.book_publisher }}</h2>
                <h2>现存数量：{{ book.book_num }}</h2>
            </div>
            <div class="details-right">
                <h2>书籍名：{{ book.book_name }}</h2>
                <h2>发行时间：{{ book.book_pubDate }}</h2>
                <h2>价格：{{ book.book_price }} 元</h2>
                <h2>总数量：{{ book.book_total }}</h2>
            </div>
        </div>
        <div class="book-intro">
            {{ book.book_intro|linebreaks }}
        </div>
        <div class="borrow-options">
            <form action="/adm_bookAlter/" method="post">
            {% csrf_token %}
            <input type="hidden" name="form_id" value="info2Alter">
            <input type="hidden" name="book_id" value="{{ book.book_id }}">
            <input type="submit" value="修改信息" class="button">
            </form>
            <div class="error-message">
                {% if err %}
                    {{ err }}
                {% endif %}
            </div>
            <a href="/adm_book" class="return-link">返回</a>
        </div>

    </div>
</body>
</html>